package com.liyuhang.service;

import com.liyuhang.dao.UserDao;
import com.liyuhang.domain.User;
public class UserService {
    private UserDao userDao=new UserDao();
    public boolean login(User user) {
       User loginUser = userDao.findUserByUsername(user.getUsername());
        return loginUser != null && loginUser.getPassword().equals(user.getPassword());
    }
}
